package com.adnaan.restaurant.mapper;

import com.adnaan.restaurant.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StudentMapper {

    //查询所有学生信息
    List<Student> queryAll();

    List<Student> selectStudentList(String name);

    // 查询某个学生信息
    Student selectStudentById(Long id);

    int insertStudent(Student student);

    int updateStudent(Student student);
}
